.class public Lcom/example/m6wmr/RunMapDemo;
.super Landroid/app/Activity;
.source "RunMapDemo.java"

# interfaces
.implements Lcom/baidu/mapapi/search/geocode/OnGetGeoCoderResultListener;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "DefaultLocale"
    }
.end annotation


# static fields
.field private static final LTAG:Ljava/lang/String;


# instance fields
.field private flag:Ljava/lang/String;

.field private flag2:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private keyinput:Landroid/widget/EditText;

.field listener:Lcom/baidu/mapapi/map/BaiduMap$OnMapStatusChangeListener;

.field m:Lmyapp/MyApp;

.field private mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

.field private mCenterLatLng:Lcom/baidu/mapapi/model/LatLng;

.field private mMapView:Lcom/baidu/mapapi/map/MapView;

.field private mPoiSearch:Lcom/baidu/mapapi/search/poi/PoiSearch;

.field mSearch:Lcom/baidu/mapapi/search/geocode/GeoCoder;

.field private mcontext:Landroid/content/Context;

.field mkkk:Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

.field poiListener:Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;

.field private schls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/searchBean;",
            ">;"
        }
    .end annotation
.end field

.field private searchbtn:Landroid/widget/TextView;

.field searchls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/baidu/mapapi/search/core/PoiInfo;",
            ">;"
        }
    .end annotation
.end field

.field private spbd:Ldata/MapData;

.field private spbd1:Ldata/searchData;

.field tempid:Ljava/lang/String;

.field private tempschls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/searchBean;",
            ">;"
        }
    .end annotation
.end field

.field textchange:Landroid/text/TextWatcher;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 75
    const-class v0, Lcom/example/m6wmr/MainActivity;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/example/m6wmr/RunMapDemo;->LTAG:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 72
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 78
    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mPoiSearch:Lcom/baidu/mapapi/search/poi/PoiSearch;

    .line 81
    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->m:Lmyapp/MyApp;

    .line 82
    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->h:Landroid/os/Handler;

    .line 84
    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mSearch:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    .line 93
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->tempschls:Ljava/util/List;

    .line 268
    new-instance v0, Lcom/example/m6wmr/RunMapDemo$1;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/RunMapDemo$1;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->textchange:Landroid/text/TextWatcher;

    .line 293
    new-instance v0, Lcom/example/m6wmr/RunMapDemo$2;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/RunMapDemo$2;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->poiListener:Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;

    .line 453
    new-instance v0, Lcom/example/m6wmr/RunMapDemo$3;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/RunMapDemo$3;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->listener:Lcom/baidu/mapapi/map/BaiduMap$OnMapStatusChangeListener;

    .line 72
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/RunMapDemo;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->searchbtn:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/RunMapDemo;)Ldata/MapData;
    .locals 1

    .prologue
    .line 80
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->spbd:Ldata/MapData;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/RunMapDemo;Lcom/baidu/mapapi/map/MapStatus;)V
    .locals 0

    .prologue
    .line 478
    invoke-direct {p0, p1}, Lcom/example/m6wmr/RunMapDemo;->updateMapState(Lcom/baidu/mapapi/map/MapStatus;)V

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/RunMapDemo;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 85
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/RunMapDemo;)Landroid/widget/EditText;
    .locals 1

    .prologue
    .line 87
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->keyinput:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/RunMapDemo;)Ljava/util/List;
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->schls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/RunMapDemo;)Ljava/util/List;
    .locals 1

    .prologue
    .line 93
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->tempschls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/RunMapDemo;Ldata/searchData;)V
    .locals 0

    .prologue
    .line 91
    iput-object p1, p0, Lcom/example/m6wmr/RunMapDemo;->spbd1:Ldata/searchData;

    return-void
.end method

.method static synthetic access$7(Lcom/example/m6wmr/RunMapDemo;)Ldata/searchData;
    .locals 1

    .prologue
    .line 91
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->spbd1:Ldata/searchData;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/RunMapDemo;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->flag:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/RunMapDemo;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->flag2:Ljava/lang/String;

    return-object v0
.end method

.method private initListener()V
    .locals 2

    .prologue
    .line 411
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    new-instance v1, Lcom/example/m6wmr/RunMapDemo$7;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/RunMapDemo$7;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/BaiduMap;->setOnMapStatusChangeListener(Lcom/baidu/mapapi/map/BaiduMap$OnMapStatusChangeListener;)V

    .line 452
    return-void
.end method

.method private updateMapState(Lcom/baidu/mapapi/map/MapStatus;)V
    .locals 3
    .param p1, "status"    # Lcom/baidu/mapapi/map/MapStatus;

    .prologue
    .line 479
    iget-object v0, p1, Lcom/baidu/mapapi/map/MapStatus;->target:Lcom/baidu/mapapi/model/LatLng;

    iput-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mCenterLatLng:Lcom/baidu/mapapi/model/LatLng;

    .line 484
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mSearch:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    new-instance v1, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    invoke-direct {v1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;-><init>()V

    .line 485
    iget-object v2, p0, Lcom/example/m6wmr/RunMapDemo;->mCenterLatLng:Lcom/baidu/mapapi/model/LatLng;

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;->location(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    move-result-object v1

    .line 484
    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->reverseGeoCode(Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;)Z

    .line 486
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 10
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 96
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 98
    const-string v6, "--------"

    const-string v7, "xxxxxx"

    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 99
    invoke-virtual {p0}, Lcom/example/m6wmr/RunMapDemo;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    invoke-static {v6}, Lcom/baidu/mapapi/SDKInitializer;->initialize(Landroid/content/Context;)V

    .line 100
    const v6, 0x7f030027

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/RunMapDemo;->setContentView(I)V

    .line 101
    invoke-virtual {p0}, Lcom/example/m6wmr/RunMapDemo;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    check-cast v6, Lmyapp/MyApp;

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->m:Lmyapp/MyApp;

    .line 102
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 103
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {p0}, Lcom/example/m6wmr/RunMapDemo;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 104
    .local v2, "intent":Landroid/content/Intent;
    const-string v6, "flag"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->flag:Ljava/lang/String;

    .line 105
    const-string v6, "flag2"

    invoke-virtual {v2, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->flag2:Ljava/lang/String;

    .line 106
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 107
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->m:Lmyapp/MyApp;

    const/4 v7, 0x0

    invoke-virtual {v6, v7}, Lmyapp/MyApp;->setsearch(Z)V

    .line 108
    iput-object p0, p0, Lcom/example/m6wmr/RunMapDemo;->mcontext:Landroid/content/Context;

    .line 109
    const v6, 0x7f0c00e5

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/RunMapDemo;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/baidu/mapapi/map/MapView;

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mMapView:Lcom/baidu/mapapi/map/MapView;

    .line 110
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->searchls:Ljava/util/List;

    .line 112
    const/high16 v6, 0x7f0c0000

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/RunMapDemo;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 113
    .local v5, "top":Landroid/widget/LinearLayout;
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 114
    const v6, 0x7f070026

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 117
    :cond_0
    new-instance v4, Lcom/baidu/mapapi/model/LatLng;

    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getLat()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v6

    iget-object v8, p0, Lcom/example/m6wmr/RunMapDemo;->m:Lmyapp/MyApp;

    invoke-virtual {v8}, Lmyapp/MyApp;->getLng()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v8

    invoke-direct {v4, v6, v7, v8, v9}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    .line 119
    .local v4, "p":Lcom/baidu/mapapi/model/LatLng;
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mMapView:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v6}, Lcom/baidu/mapapi/map/MapView;->getMap()Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    .line 120
    new-instance v6, Lcom/baidu/mapapi/map/MapStatus$Builder;

    invoke-direct {v6}, Lcom/baidu/mapapi/map/MapStatus$Builder;-><init>()V

    invoke-virtual {v6, v4}, Lcom/baidu/mapapi/map/MapStatus$Builder;->target(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatus$Builder;

    move-result-object v6

    const/high16 v7, 0x41900000    # 18.0f

    invoke-virtual {v6, v7}, Lcom/baidu/mapapi/map/MapStatus$Builder;->zoom(F)Lcom/baidu/mapapi/map/MapStatus$Builder;

    move-result-object v6

    invoke-virtual {v6}, Lcom/baidu/mapapi/map/MapStatus$Builder;->build()Lcom/baidu/mapapi/map/MapStatus;

    move-result-object v3

    .line 121
    .local v3, "ms":Lcom/baidu/mapapi/map/MapStatus;
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-static {v3}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newMapStatus(Lcom/baidu/mapapi/map/MapStatus;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v7

    invoke-virtual {v6, v7}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    .line 122
    invoke-static {}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->newInstance()Lcom/baidu/mapapi/search/geocode/GeoCoder;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mSearch:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    .line 123
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mSearch:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    invoke-virtual {v6, p0}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->setOnGetGeoCodeResultListener(Lcom/baidu/mapapi/search/geocode/OnGetGeoCoderResultListener;)V

    .line 124
    iput-object v4, p0, Lcom/example/m6wmr/RunMapDemo;->mCenterLatLng:Lcom/baidu/mapapi/model/LatLng;

    .line 127
    const v6, 0x7f0c0001

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/RunMapDemo;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 128
    .local v1, "closebtn":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/m6wmr/RunMapDemo$4;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/RunMapDemo$4;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 147
    sget-object v6, Lmyapp/MyApp;->mapnameParticular:Ljava/lang/String;

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->tempid:Ljava/lang/String;

    .line 148
    invoke-virtual {p0}, Lcom/example/m6wmr/RunMapDemo;->setbaidutosiet()Z

    .line 149
    const v6, 0x7f0c0013

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/RunMapDemo;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->searchbtn:Landroid/widget/TextView;

    .line 151
    const v6, 0x7f0c001e

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/RunMapDemo;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/EditText;

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->keyinput:Landroid/widget/EditText;

    .line 152
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->keyinput:Landroid/widget/EditText;

    iget-object v7, p0, Lcom/example/m6wmr/RunMapDemo;->textchange:Landroid/text/TextWatcher;

    invoke-virtual {v6, v7}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 154
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->searchbtn:Landroid/widget/TextView;

    new-instance v7, Lcom/example/m6wmr/RunMapDemo$5;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/RunMapDemo$5;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 193
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->schls:Ljava/util/List;

    .line 195
    new-instance v6, Lcom/example/m6wmr/RunMapDemo$6;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/RunMapDemo$6;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->h:Landroid/os/Handler;

    .line 259
    invoke-static {}, Lcom/baidu/mapapi/search/poi/PoiSearch;->newInstance()Lcom/baidu/mapapi/search/poi/PoiSearch;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mPoiSearch:Lcom/baidu/mapapi/search/poi/PoiSearch;

    .line 260
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mPoiSearch:Lcom/baidu/mapapi/search/poi/PoiSearch;

    iget-object v7, p0, Lcom/example/m6wmr/RunMapDemo;->poiListener:Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;

    invoke-virtual {v6, v7}, Lcom/baidu/mapapi/search/poi/PoiSearch;->setOnGetPoiSearchResultListener(Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;)V

    .line 261
    invoke-direct {p0}, Lcom/example/m6wmr/RunMapDemo;->initListener()V

    .line 262
    iget-object v6, p0, Lcom/example/m6wmr/RunMapDemo;->mSearch:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    new-instance v7, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    invoke-direct {v7}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;-><init>()V

    .line 263
    invoke-virtual {v7, v4}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;->location(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;

    move-result-object v7

    .line 262
    invoke-virtual {v6, v7}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->reverseGeoCode(Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeOption;)Z

    .line 265
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 512
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 514
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mPoiSearch:Lcom/baidu/mapapi/search/poi/PoiSearch;

    invoke-virtual {v0}, Lcom/baidu/mapapi/search/poi/PoiSearch;->destroy()V

    .line 515
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mSearch:Lcom/baidu/mapapi/search/geocode/GeoCoder;

    invoke-virtual {v0}, Lcom/baidu/mapapi/search/geocode/GeoCoder;->destroy()V

    .line 516
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mMapView:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onDestroy()V

    .line 517
    return-void
.end method

.method public onGetGeoCodeResult(Lcom/baidu/mapapi/search/geocode/GeoCodeResult;)V
    .locals 7
    .param p1, "result"    # Lcom/baidu/mapapi/search/geocode/GeoCodeResult;

    .prologue
    const/4 v6, 0x1

    .line 394
    if-eqz p1, :cond_0

    iget-object v1, p1, Lcom/baidu/mapapi/search/geocode/GeoCodeResult;->error:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    sget-object v2, Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;->NO_ERROR:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    if-eq v1, v2, :cond_1

    .line 395
    :cond_0
    const-string v1, "\u62b1\u6b49\uff0c\u672a\u80fd\u627e\u5230\u7ed3\u679c"

    invoke-static {p0, v1, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    .line 396
    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 408
    :goto_0
    return-void

    .line 399
    :cond_1
    iget-object v1, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1}, Lcom/baidu/mapapi/map/BaiduMap;->clear()V

    .line 400
    iget-object v1, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    new-instance v2, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v2}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/GeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v2

    .line 402
    const v3, 0x7f020068

    invoke-static {v3}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromResource(I)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v3

    .line 401
    invoke-virtual {v2, v3}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v2

    .line 400
    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    .line 403
    iget-object v1, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    .line 404
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/GeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v2

    .line 403
    invoke-static {v2}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/BaiduMap;->setMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    .line 405
    const-string v1, "\u7eac\u5ea6\uff1a%f \u7ecf\u5ea6\uff1a%f"

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    .line 406
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/GeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v4

    iget-wide v4, v4, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/GeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v3

    iget-wide v3, v3, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    invoke-static {v3, v4}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v3

    aput-object v3, v2, v6

    .line 405
    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 407
    .local v0, "strInfo":Ljava/lang/String;
    invoke-static {p0, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method public onGetPoiDetailResult(Lcom/baidu/mapapi/search/poi/PoiDetailResult;)V
    .locals 1
    .param p1, "result"    # Lcom/baidu/mapapi/search/poi/PoiDetailResult;

    .prologue
    .line 488
    iget-object v0, p1, Lcom/baidu/mapapi/search/poi/PoiDetailResult;->error:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    sget-object v0, Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;->NO_ERROR:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    .line 495
    return-void
.end method

.method public onGetReverseGeoCodeResult(Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;)V
    .locals 7
    .param p1, "result"    # Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;

    .prologue
    .line 351
    if-eqz p1, :cond_0

    iget-object v3, p1, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->error:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    sget-object v4, Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;->NO_ERROR:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    if-eq v3, v4, :cond_2

    .line 352
    :cond_0
    const-string v3, "\u62b1\u6b49\uff0c\u672a\u80fd\u627e\u5230\u7ed3\u679c"

    const/4 v4, 0x1

    invoke-static {p0, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    .line 353
    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 391
    :cond_1
    :goto_0
    return-void

    .line 356
    :cond_2
    iget-object v3, p0, Lcom/example/m6wmr/RunMapDemo;->searchls:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 358
    iget-object v3, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v3}, Lcom/baidu/mapapi/map/BaiduMap;->clear()V

    .line 359
    iget-object v3, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    new-instance v4, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v4}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v4

    .line 361
    const v5, 0x7f020068

    invoke-static {v5}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromResource(I)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v5

    .line 360
    invoke-virtual {v4, v5}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v4

    .line 359
    invoke-virtual {v3, v4}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    .line 362
    iget-object v3, p0, Lcom/example/m6wmr/RunMapDemo;->mBaiduMap:Lcom/baidu/mapapi/map/BaiduMap;

    .line 363
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getLocation()Lcom/baidu/mapapi/model/LatLng;

    move-result-object v4

    .line 362
    invoke-static {v4}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/baidu/mapapi/map/BaiduMap;->setMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    .line 364
    const-string v3, "\u5546\u5708\u540d"

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getBusinessCircle()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 365
    const-string v3, "name"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getAddressDetail()Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult$AddressComponent;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 366
    const-string v3, "getAddress"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getAddress()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 368
    :try_start_0
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getPoiList()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_1

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getPoiList()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-eqz v3, :cond_1

    .line 372
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getPoiList()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-lt v2, v3, :cond_3

    .line 383
    iget-object v3, p0, Lcom/example/m6wmr/RunMapDemo;->spbd:Ldata/MapData;

    invoke-virtual {v3}, Ldata/MapData;->notifyDataSetChanged()V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 385
    .end local v2    # "i":I
    :catch_0
    move-exception v1

    .line 386
    .local v1, "e":Ljava/lang/NullPointerException;
    invoke-virtual {v1}, Ljava/lang/NullPointerException;->printStackTrace()V

    goto/16 :goto_0

    .line 374
    .end local v1    # "e":Ljava/lang/NullPointerException;
    .restart local v2    # "i":I
    :cond_3
    :try_start_1
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/geocode/ReverseGeoCodeResult;->getPoiList()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/search/core/PoiInfo;

    .line 375
    .local v0, "cc":Lcom/baidu/mapapi/search/core/PoiInfo;
    const-string v3, "child----address"

    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->address:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 377
    const-string v3, "child----name"

    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->name:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 378
    const-string v3, "child----uid"

    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->uid:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 379
    const-string v3, "child----lat"

    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->location:Lcom/baidu/mapapi/model/LatLng;

    iget-wide v5, v5, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 380
    const-string v3, "child----lng"

    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, v0, Lcom/baidu/mapapi/search/core/PoiInfo;->location:Lcom/baidu/mapapi/model/LatLng;

    iget-wide v5, v5, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 381
    iget-object v3, p0, Lcom/example/m6wmr/RunMapDemo;->searchls:Ljava/util/List;

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0

    .line 372
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_1
.end method

.method protected onPause()V
    .locals 1

    .prologue
    .line 498
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 500
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mMapView:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onPause()V

    .line 501
    return-void
.end method

.method protected onResume()V
    .locals 1

    .prologue
    .line 505
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 507
    iget-object v0, p0, Lcom/example/m6wmr/RunMapDemo;->mMapView:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onResume()V

    .line 508
    return-void
.end method

.method onTouch(Landroid/view/MotionEvent;)V
    .locals 2
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 475
    const-string v0, "--------"

    invoke-virtual {p1}, Landroid/view/MotionEvent;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 476
    return-void
.end method

.method public setbaidutosiet()Z
    .locals 1

    .prologue
    .line 521
    new-instance v0, Lcom/example/m6wmr/RunMapDemo$8;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/RunMapDemo$8;-><init>(Lcom/example/m6wmr/RunMapDemo;)V

    .line 586
    invoke-virtual {v0}, Lcom/example/m6wmr/RunMapDemo$8;->start()V

    .line 587
    const/4 v0, 0x0

    return v0
.end method
